<!DOCTYPE html>
<html>
	<head>
		<title>Libman</title>
		<%= stylesheet_link_tag    "adminstyle", :media => "all" %>
		<%= javascript_include_tag "application" %>
		<%= csrf_meta_tags %>
	</head>
	<div id="container">
		<div id="header">
			<div class="div1">
				<div class="div2">
					<%= image_tag("/assets/admin/logo.png", :alt => "test image") %>
				</div>
				<div class="div3">
					<%= image_tag("/assets/admin/lock.png", :alt => "test image") %>
					&nbsp;<%= t("Welcome") %> <%= session[:user].fullname %>
					<%= link_to image_tag("/assets/vn.png", :alt => "Vietnamese"), :controller => 'language',:action => 'index',:lang =>'vi',:page => 'admin'%>
					<%= link_to image_tag("/assets/gb.png", :alt => "English"), :controller => 'language',:action => 'index',:lang =>'en',:page => 'admin'%>
				</div>
			</div>
			<div id="menu">
				<ul class="left">
					<li>
						<%= link_to t('Homepage'), root_url, :class => "top" %>
					</li>
					<li>
						<%= link_to t('Management Book'), indexbooks_manager_books_path, :class => "top" %>
					</li>
					<li>
						<%= link_to t('Management User'), manager_users_path, :class => "top" %>
					</li>
					<li>
						<%= link_to t('Borrow'), manager_borrows_path, :class => "top" %>
					</li>
					<li>
						<%= link_to t('Manager Information'), manager_informations_path, :class => "top" %>
					</li>
				</ul>
				<ul class="right">
					<li>
						<%= link_to t('View Profile'), manager_user_path(session[:user]), :method => :get, :class => "top" %>
					</li>
					<li>
						<%= link_to t('Logout'), session_logout_path, :class => "top" %>
					</li>
				</ul>
			</div>
		</div>

		<div id="content">
			<div class = "main">
				<%= yield %>
			</div>
		</div>

		<div id="footer">
			© Copyright 2012 Ruby Team
		</div>
		</body>
</html>
